//This code create by CodeEngine

#if UNITY_WP8
 using UnityPortSocket; 
#else
#endif
using Google.ProtocolBuffers;
public abstract class PacketDistributed
{
    public static PacketDistributed CreatePacket(MessageID packetID)
    {
        PacketDistributed packet = null;
        switch (packetID)
        {
            case MessageID.PACKET_CG_ABANDONMISSION: { packet = new CG_ABANDONMISSION(); } break;
            case MessageID.PACKET_CG_ACCEPTMISSION: { packet = new CG_ACCEPTMISSION(); } break;
            case MessageID.PACKET_CG_ACK_ACTIVE_LEICHONG: { packet = new CG_ACK_ACTIVE_LEICHONG(); } break;
            case MessageID.PACKET_CG_ACTIVE_FELLOW_SKILL: { packet = new CG_ACTIVE_FELLOW_SKILL(); } break;
            case MessageID.PACKET_CG_ACTIVE_TITLE: { packet = new CG_ACTIVE_TITLE(); } break;
            case MessageID.PACKET_CG_ADDBLACKLIST: { packet = new CG_ADDBLACKLIST(); } break;
            case MessageID.PACKET_CG_ADDFRIEND: { packet = new CG_ADDFRIEND(); } break;
            case MessageID.PACKET_CG_ADDPAY_TEST: { packet = new CG_ADDPAY_TEST(); } break;
            case MessageID.PACKET_CG_ASK_7DAYAWARD: { packet = new CG_ASK_7DAYAWARD(); } break;
            case MessageID.PACKET_CG_ASK_ACTIVENESSAWARD: { packet = new CG_ASK_ACTIVENESSAWARD(); } break;
            case MessageID.PACKET_CG_ASK_AUTOTEAM: { packet = new CG_ASK_AUTOTEAM(); } break;
            case MessageID.PACKET_CG_ASK_BINDNUMBER: { packet = new CG_ASK_BINDNUMBER(); } break;
            case MessageID.PACKET_CG_ASK_BLACKMARKETITEMINFO: { packet = new CG_ASK_BLACKMARKETITEMINFO(); } break;
            case MessageID.PACKET_CG_ASK_CHALLENGEGUILDWAR: { packet = new CG_ASK_CHALLENGEGUILDWAR(); } break;
            case MessageID.PACKET_CG_ASK_CONSIGNSALEITEMINFO: { packet = new CG_ASK_CONSIGNSALEITEMINFO(); } break;
            case MessageID.PACKET_CG_ASK_COPYSCENE_REWARD: { packet = new CG_ASK_COPYSCENE_REWARD(); } break;
            case MessageID.PACKET_CG_ASK_COPYSCENE_SWEEP: { packet = new CG_ASK_COPYSCENE_SWEEP(); } break;
            case MessageID.PACKET_CG_ASK_CURGUILDWARTYPE: { packet = new CG_ASK_CURGUILDWARTYPE(); } break;
            case MessageID.PACKET_CG_ASK_DAILYAWARD: { packet = new CG_ASK_DAILYAWARD(); } break;
            case MessageID.PACKET_CG_ASK_DAYAWARD: { packet = new CG_ASK_DAYAWARD(); } break;
            case MessageID.PACKET_CG_ASK_ENEMYGUILDINFO: { packet = new CG_ASK_ENEMYGUILDINFO(); } break;
            case MessageID.PACKET_CG_ASK_FINALGUILDWARGROUPINFO: { packet = new CG_ASK_FINALGUILDWARGROUPINFO(); } break;
            case MessageID.PACKET_CG_ASK_FINALGUILDWARPOINTINFO: { packet = new CG_ASK_FINALGUILDWARPOINTINFO(); } break;
            case MessageID.PACKET_CG_ASK_GAIN_10_FELLOW: { packet = new CG_ASK_GAIN_10_FELLOW(); } break;
            case MessageID.PACKET_CG_ASK_GAIN_FELLOW: { packet = new CG_ASK_GAIN_FELLOW(); } break;
            case MessageID.PACKET_CG_ASK_GUILDBUSINESSINFO: { packet = new CG_ASK_GUILDBUSINESSINFO(); } break;
            case MessageID.PACKET_CG_ASK_GUILDBUSINESS_ACCEPT: { packet = new CG_ASK_GUILDBUSINESS_ACCEPT(); } break;
            case MessageID.PACKET_CG_ASK_GUILDMISSIONINFO: { packet = new CG_ASK_GUILDMISSIONINFO(); } break;
            case MessageID.PACKET_CG_ASK_GUILDWILDWAR: { packet = new CG_ASK_GUILDWILDWAR(); } break;
            case MessageID.PACKET_CG_ASK_GUILD_MAKE: { packet = new CG_ASK_GUILD_MAKE(); } break;
            case MessageID.PACKET_CG_ASK_HIDE_FELLOW: { packet = new CG_ASK_HIDE_FELLOW(); } break;
            case MessageID.PACKET_CG_ASK_HUASHANPVP_STATE: { packet = new CG_ASK_HUASHANPVP_STATE(); } break;
            case MessageID.PACKET_CG_ASK_ISRECHARGE_ENABLE: { packet = new CG_ASK_ISRECHARGE_ENABLE(); } break;
            case MessageID.PACKET_CG_ASK_LEVELAWARD: { packet = new CG_ASK_LEVELAWARD(); } break;
            case MessageID.PACKET_CG_ASK_LEVELUPSKILL: { packet = new CG_ASK_LEVELUPSKILL(); } break;
            case MessageID.PACKET_CG_ASK_LOCK_TITLE: { packet = new CG_ASK_LOCK_TITLE(); } break;
            case MessageID.PACKET_CG_ASK_LOUDSPEAKER_POOL: { packet = new CG_ASK_LOUDSPEAKER_POOL(); } break;
            case MessageID.PACKET_CG_ASK_MYCONSIGNSALEITEM: { packet = new CG_ASK_MYCONSIGNSALEITEM(); } break;
            case MessageID.PACKET_CG_ASK_NEW7DAYONLINEAWARD: { packet = new CG_ASK_NEW7DAYONLINEAWARD(); } break;
            case MessageID.PACKET_CG_ASK_NEWONLINEAWARD: { packet = new CG_ASK_NEWONLINEAWARD(); } break;
            case MessageID.PACKET_CG_ASK_NEWPLAYER_CREATE_NPC: { packet = new CG_ASK_NEWPLAYER_CREATE_NPC(); } break;
            case MessageID.PACKET_CG_ASK_NEWSERVERAWARD: { packet = new CG_ASK_NEWSERVERAWARD(); } break;
            case MessageID.PACKET_CG_ASK_ONLINEAWARD: { packet = new CG_ASK_ONLINEAWARD(); } break;
            case MessageID.PACKET_CG_ASK_OTHERROLE_DATA: { packet = new CG_ASK_OTHERROLE_DATA(); } break;
            case MessageID.PACKET_CG_ASK_PAY_ACTIVITY: { packet = new CG_ASK_PAY_ACTIVITY(); } break;
            case MessageID.PACKET_CG_ASK_PAY_ACTIVITY_PRIZE: { packet = new CG_ASK_PAY_ACTIVITY_PRIZE(); } break;
            case MessageID.PACKET_CG_ASK_PICKUP_ITEM: { packet = new CG_ASK_PICKUP_ITEM(); } break;
            case MessageID.PACKET_CG_ASK_PKINFO: { packet = new CG_ASK_PKINFO(); } break;
            case MessageID.PACKET_CG_ASK_PRELIMINARY_WARINFO: { packet = new CG_ASK_PRELIMINARY_WARINFO(); } break;
            case MessageID.PACKET_CG_ASK_QUIT_GAME: { packet = new CG_ASK_QUIT_GAME(); } break;
            case MessageID.PACKET_CG_ASK_RANK: { packet = new CG_ASK_RANK(); } break;
            case MessageID.PACKET_CG_ASK_RELIVE: { packet = new CG_ASK_RELIVE(); } break;
            case MessageID.PACKET_CG_ASK_ROLE_DATA: { packet = new CG_ASK_ROLE_DATA(); } break;
            case MessageID.PACKET_CG_ASK_SELOBJ_INFO: { packet = new CG_ASK_SELOBJ_INFO(); } break;
            case MessageID.PACKET_CG_ASK_SETAUTOASSIGNPSTIMES: { packet = new CG_ASK_SETAUTOASSIGNPSTIMES(); } break;
            case MessageID.PACKET_CG_ASK_SETCOMMONFLAG: { packet = new CG_ASK_SETCOMMONFLAG(); } break;
            case MessageID.PACKET_CG_ASK_SHOW_FELLOW: { packet = new CG_ASK_SHOW_FELLOW(); } break;
            case MessageID.PACKET_CG_ASK_SPECIALAWARD: { packet = new CG_ASK_SPECIALAWARD(); } break;
            case MessageID.PACKET_CG_ASK_TEAMPLATFORMINFO: { packet = new CG_ASK_TEAMPLATFORMINFO(); } break;
            case MessageID.PACKET_CG_ASK_TIDY: { packet = new CG_ASK_TIDY(); } break;
            case MessageID.PACKET_CG_ASK_TORCH_VALUE: { packet = new CG_ASK_TORCH_VALUE(); } break;
            case MessageID.PACKET_CG_ASK_TRAIL: { packet = new CG_ASK_TRAIL(); } break;
            case MessageID.PACKET_CG_ASK_UPDATE_STORAGEPACK: { packet = new CG_ASK_UPDATE_STORAGEPACK(); } break;
            case MessageID.PACKET_CG_ASK_YUANBAOSHOP_OPEN: { packet = new CG_ASK_YUANBAOSHOP_OPEN(); } break;
            case MessageID.PACKET_CG_ASSIGN_GUILDBUSINESS_TIME: { packet = new CG_ASSIGN_GUILDBUSINESS_TIME(); } break;
            case MessageID.PACKET_CG_ASSIGN_GUILDMISSION: { packet = new CG_ASSIGN_GUILDMISSION(); } break;
            case MessageID.PACKET_CG_BACKPACK_UNLOCK: { packet = new CG_BACKPACK_UNLOCK(); } break;
            case MessageID.PACKET_CG_BELLE_ACTIVEMATRIX: { packet = new CG_BELLE_ACTIVEMATRIX(); } break;
            case MessageID.PACKET_CG_BELLE_BATTLE: { packet = new CG_BELLE_BATTLE(); } break;
            case MessageID.PACKET_CG_BELLE_CANCELMATRIX: { packet = new CG_BELLE_CANCELMATRIX(); } break;
            case MessageID.PACKET_CG_BELLE_CLOSE: { packet = new CG_BELLE_CLOSE(); } break;
            case MessageID.PACKET_CG_BELLE_EVOLUTION: { packet = new CG_BELLE_EVOLUTION(); } break;
            case MessageID.PACKET_CG_BELLE_EVOLUTIONRAPID: { packet = new CG_BELLE_EVOLUTIONRAPID(); } break;
            case MessageID.PACKET_CG_BELLE_REST: { packet = new CG_BELLE_REST(); } break;
            case MessageID.PACKET_CG_BUY_BLACKMARKETITEM: { packet = new CG_BUY_BLACKMARKETITEM(); } break;
            case MessageID.PACKET_CG_BUY_CONSIGNSALEITEMINFO: { packet = new CG_BUY_CONSIGNSALEITEMINFO(); } break;
            case MessageID.PACKET_CG_BUY_FASHION: { packet = new CG_BUY_FASHION(); } break;
            case MessageID.PACKET_CG_BUY_GUILDGOODS: { packet = new CG_BUY_GUILDGOODS(); } break;
            case MessageID.PACKET_CG_BUY_STAMINA: { packet = new CG_BUY_STAMINA(); } break;
            case MessageID.PACKET_CG_BUY_SWORDSMAN: { packet = new CG_BUY_SWORDSMAN(); } break;
            case MessageID.PACKET_CG_BUY_YUANBAOGOODS: { packet = new CG_BUY_YUANBAOGOODS(); } break;
            case MessageID.PACKET_CG_CALL_FELLOW: { packet = new CG_CALL_FELLOW(); } break;
            case MessageID.PACKET_CG_CANCELCONSIGNSALEITEM: { packet = new CG_CANCELCONSIGNSALEITEM(); } break;
            case MessageID.PACKET_CG_CHALLENGERANKLIST_REQ: { packet = new CG_CHALLENGERANKLIST_REQ(); } break;
            case MessageID.PACKET_CG_CHANGE_MAJORCITY: { packet = new CG_CHANGE_MAJORCITY(); } break;
            case MessageID.PACKET_CG_CHANGE_PKMODLE: { packet = new CG_CHANGE_PKMODLE(); } break;
            case MessageID.PACKET_CG_CHANGE_SHOWFASHION: { packet = new CG_CHANGE_SHOWFASHION(); } break;
            case MessageID.PACKET_CG_CHAT: { packet = new CG_CHAT(); } break;
            case MessageID.PACKET_CG_CH_MON_FIGHT: { packet = new CG_CH_MON_FIGHT(); } break;
            case MessageID.PACKET_CG_COMBATVALUE_ASK: { packet = new CG_COMBATVALUE_ASK(); } break;
            case MessageID.PACKET_CG_COMPLETEMISSION: { packet = new CG_COMPLETEMISSION(); } break;
            case MessageID.PACKET_CG_CONNECTED_HEARTBEAT: { packet = new CG_CONNECTED_HEARTBEAT(); } break;
            case MessageID.PACKET_CG_CONSIGNSALEITEM: { packet = new CG_CONSIGNSALEITEM(); } break;
            case MessageID.PACKET_CG_COPYSCENERESET: { packet = new CG_COPYSCENERESET(); } break;
            case MessageID.PACKET_CG_COPYSCENE_INVITE_RET: { packet = new CG_COPYSCENE_INVITE_RET(); } break;
            case MessageID.PACKET_CG_CREATEROLE: { packet = new CG_CREATEROLE(); } break;
            case MessageID.PACKET_CG_CYPAY_SUCCESS: { packet = new CG_CYPAY_SUCCESS(); } break;
            case MessageID.PACKET_CG_DAILYLUCKYDRAW_DRAW: { packet = new CG_DAILYLUCKYDRAW_DRAW(); } break;
            case MessageID.PACKET_CG_DAILYMISSION_UPDATE: { packet = new CG_DAILYMISSION_UPDATE(); } break;
            case MessageID.PACKET_CG_DELBLACKLIST: { packet = new CG_DELBLACKLIST(); } break;
            case MessageID.PACKET_CG_DELETE_TITLE: { packet = new CG_DELETE_TITLE(); } break;
            case MessageID.PACKET_CG_DELFRIEND: { packet = new CG_DELFRIEND(); } break;
            case MessageID.PACKET_CG_DELHATELIST: { packet = new CG_DELHATELIST(); } break;
            case MessageID.PACKET_CG_DUEL_REQUEST: { packet = new CG_DUEL_REQUEST(); } break;
            case MessageID.PACKET_CG_DUEL_RESPONSE: { packet = new CG_DUEL_RESPONSE(); } break;
            case MessageID.PACKET_CG_ENTER_SCENE_OK: { packet = new CG_ENTER_SCENE_OK(); } break;
            case MessageID.PACKET_CG_EQUIP_ENCHANCE: { packet = new CG_EQUIP_ENCHANCE(); } break;
            case MessageID.PACKET_CG_EQUIP_FELLOW_SKILL: { packet = new CG_EQUIP_FELLOW_SKILL(); } break;
            case MessageID.PACKET_CG_EQUIP_ITEM: { packet = new CG_EQUIP_ITEM(); } break;
            case MessageID.PACKET_CG_EQUIP_STAR: { packet = new CG_EQUIP_STAR(); } break;
            case MessageID.PACKET_CG_EQUIP_SWORDSMAN: { packet = new CG_EQUIP_SWORDSMAN(); } break;
            case MessageID.PACKET_CG_FACEDIR_PLAYER: { packet = new CG_FACEDIR_PLAYER(); } break;
            case MessageID.PACKET_CG_FELLOW_APPLY_POINT: { packet = new CG_FELLOW_APPLY_POINT(); } break;
            case MessageID.PACKET_CG_FELLOW_CHANGE_NAME: { packet = new CG_FELLOW_CHANGE_NAME(); } break;
            case MessageID.PACKET_CG_FELLOW_ENCHANCE: { packet = new CG_FELLOW_ENCHANCE(); } break;
            case MessageID.PACKET_CG_FELLOW_RESET_POINT: { packet = new CG_FELLOW_RESET_POINT(); } break;
            case MessageID.PACKET_CG_FELLOW_STAR: { packet = new CG_FELLOW_STAR(); } break;
            case MessageID.PACKET_CG_FIGHTGUILDWARPOINT: { packet = new CG_FIGHTGUILDWARPOINT(); } break;
            case MessageID.PACKET_CG_FINDPLAYER: { packet = new CG_FINDPLAYER(); } break;
            case MessageID.PACKET_CG_GMCOMMAND: { packet = new CG_GMCOMMAND(); } break;
            case MessageID.PACKET_CG_GUIDE_STEP: { packet = new CG_GUIDE_STEP(); } break;
            case MessageID.PACKET_CG_GUILD_APPROVE_RESERVE: { packet = new CG_GUILD_APPROVE_RESERVE(); } break;
            case MessageID.PACKET_CG_GUILD_CREATE: { packet = new CG_GUILD_CREATE(); } break;
            case MessageID.PACKET_CG_GUILD_INVITE: { packet = new CG_GUILD_INVITE(); } break;
            case MessageID.PACKET_CG_GUILD_INVITE_CONFIRM: { packet = new CG_GUILD_INVITE_CONFIRM(); } break;
            case MessageID.PACKET_CG_GUILD_JOB_CHANGE: { packet = new CG_GUILD_JOB_CHANGE(); } break;
            case MessageID.PACKET_CG_GUILD_JOIN: { packet = new CG_GUILD_JOIN(); } break;
            case MessageID.PACKET_CG_GUILD_JOIN_OTHERPLAYER: { packet = new CG_GUILD_JOIN_OTHERPLAYER(); } break;
            case MessageID.PACKET_CG_GUILD_KICK: { packet = new CG_GUILD_KICK(); } break;
            case MessageID.PACKET_CG_GUILD_LEAVE: { packet = new CG_GUILD_LEAVE(); } break;
            case MessageID.PACKET_CG_GUILD_REQ_CHANGE_NOTICE: { packet = new CG_GUILD_REQ_CHANGE_NOTICE(); } break;
            case MessageID.PACKET_CG_GUILD_REQ_INFO: { packet = new CG_GUILD_REQ_INFO(); } break;
            case MessageID.PACKET_CG_GUILD_REQ_LEVELUP: { packet = new CG_GUILD_REQ_LEVELUP(); } break;
            case MessageID.PACKET_CG_GUILD_REQ_LIST: { packet = new CG_GUILD_REQ_LIST(); } break;
            case MessageID.PACKET_CG_HUASHAN_ASSIST_REQ: { packet = new CG_HUASHAN_ASSIST_REQ(); } break;
            case MessageID.PACKET_CG_HUASHAN_PVP_MEMBERLIST: { packet = new CG_HUASHAN_PVP_MEMBERLIST(); } break;
            case MessageID.PACKET_CG_HUASHAN_PVP_REGISTER: { packet = new CG_HUASHAN_PVP_REGISTER(); } break;
            case MessageID.PACKET_CG_JOIN_TEAM_INVITE_RESULT: { packet = new CG_JOIN_TEAM_INVITE_RESULT(); } break;
            case MessageID.PACKET_CG_JOIN_TEAM_REQUEST_RESULT: { packet = new CG_JOIN_TEAM_REQUEST_RESULT(); } break;
            case MessageID.PACKET_CG_JUQINGITEM_PLAYEFFECT: { packet = new CG_JUQINGITEM_PLAYEFFECT(); } break;
            case MessageID.PACKET_CG_LEAVE_COPYSCENE: { packet = new CG_LEAVE_COPYSCENE(); } break;
            case MessageID.PACKET_CG_LEVELUP_FELLOW_SKILL: { packet = new CG_LEVELUP_FELLOW_SKILL(); } break;
            case MessageID.PACKET_CG_LOCK_FELLOW: { packet = new CG_LOCK_FELLOW(); } break;
            case MessageID.PACKET_CG_LOCK_SWORDSMAN: { packet = new CG_LOCK_SWORDSMAN(); } break;
            case MessageID.PACKET_CG_LOGIN: { packet = new CG_LOGIN(); } break;
            case MessageID.PACKET_CG_MAIL_OPERATION: { packet = new CG_MAIL_OPERATION(); } break;
            case MessageID.PACKET_CG_MAIL_SEND: { packet = new CG_MAIL_SEND(); } break;
            case MessageID.PACKET_CG_MASTERSHOP_BUY: { packet = new CG_MASTERSHOP_BUY(); } break;
            case MessageID.PACKET_CG_MASTER_ACTIVE_SKILL: { packet = new CG_MASTER_ACTIVE_SKILL(); } break;
            case MessageID.PACKET_CG_MASTER_APPROVE_RESERVE: { packet = new CG_MASTER_APPROVE_RESERVE(); } break;
            case MessageID.PACKET_CG_MASTER_CREATE: { packet = new CG_MASTER_CREATE(); } break;
            case MessageID.PACKET_CG_MASTER_FORGET_SKILL: { packet = new CG_MASTER_FORGET_SKILL(); } break;
            case MessageID.PACKET_CG_MASTER_JOIN: { packet = new CG_MASTER_JOIN(); } break;
            case MessageID.PACKET_CG_MASTER_KICK: { packet = new CG_MASTER_KICK(); } break;
            case MessageID.PACKET_CG_MASTER_LEARN_SKILL: { packet = new CG_MASTER_LEARN_SKILL(); } break;
            case MessageID.PACKET_CG_MASTER_LEAVE: { packet = new CG_MASTER_LEAVE(); } break;
            case MessageID.PACKET_CG_MASTER_REQ_CHANGE_NOTICE: { packet = new CG_MASTER_REQ_CHANGE_NOTICE(); } break;
            case MessageID.PACKET_CG_MASTER_REQ_INFO: { packet = new CG_MASTER_REQ_INFO(); } break;
            case MessageID.PACKET_CG_MASTER_REQ_LIST: { packet = new CG_MASTER_REQ_LIST(); } break;
            case MessageID.PACKET_CG_MERCENARY_LIST_REQ: { packet = new CG_MERCENARY_LIST_REQ(); } break;
            case MessageID.PACKET_CG_MERCENARY_REQ: { packet = new CG_MERCENARY_REQ(); } break;
            case MessageID.PACKET_CG_MONEYTREE_ASKAWARD: { packet = new CG_MONEYTREE_ASKAWARD(); } break;
            case MessageID.PACKET_CG_MOUNT_MARK: { packet = new CG_MOUNT_MARK(); } break;
            case MessageID.PACKET_CG_MOUNT_MOUNT: { packet = new CG_MOUNT_MOUNT(); } break;
            case MessageID.PACKET_CG_MOUNT_UNMOUNT: { packet = new CG_MOUNT_UNMOUNT(); } break;
            case MessageID.PACKET_CG_MOVE: { packet = new CG_MOVE(); } break;
            case MessageID.PACKET_CG_OPEN_COPYSCENE: { packet = new CG_OPEN_COPYSCENE(); } break;
            case MessageID.PACKET_CG_PARTAKE_GUILDMISSION: { packet = new CG_PARTAKE_GUILDMISSION(); } break;
            case MessageID.PACKET_CG_PAY_ORDER: { packet = new CG_PAY_ORDER(); } break;
            case MessageID.PACKET_CG_PLAYSTORY_OVER: { packet = new CG_PLAYSTORY_OVER(); } break;
            case MessageID.PACKET_CG_PRELIMINARY_APPLYGUILDWAR: { packet = new CG_PRELIMINARY_APPLYGUILDWAR(); } break;
            case MessageID.PACKET_CG_PUT_GEM: { packet = new CG_PUT_GEM(); } break;
            case MessageID.PACKET_CG_PUT_ITEM_STORAGEPACK: { packet = new CG_PUT_ITEM_STORAGEPACK(); } break;
            case MessageID.PACKET_CG_QIANKUNDAI_COMBINE: { packet = new CG_QIANKUNDAI_COMBINE(); } break;
            case MessageID.PACKET_CG_RANDOM_OPPONENT: { packet = new CG_RANDOM_OPPONENT(); } break;
            case MessageID.PACKET_CG_REQUEST_CDKEY: { packet = new CG_REQUEST_CDKEY(); } break;
            case MessageID.PACKET_CG_REQ_CHALLENGE: { packet = new CG_REQ_CHALLENGE(); } break;
            case MessageID.PACKET_CG_REQ_CHANGENAME: { packet = new CG_REQ_CHANGENAME(); } break;
            case MessageID.PACKET_CG_REQ_CHANGE_SCENE: { packet = new CG_REQ_CHANGE_SCENE(); } break;
            case MessageID.PACKET_CG_REQ_FRIEND_USERINFO: { packet = new CG_REQ_FRIEND_USERINFO(); } break;
            case MessageID.PACKET_CG_REQ_HUASHAN_PKINFO: { packet = new CG_REQ_HUASHAN_PKINFO(); } break;
            case MessageID.PACKET_CG_REQ_MARRAGE: { packet = new CG_REQ_MARRAGE(); } break;
            case MessageID.PACKET_CG_REQ_NEAR_LIST: { packet = new CG_REQ_NEAR_LIST(); } break;
            case MessageID.PACKET_CG_REQ_POWERUP: { packet = new CG_REQ_POWERUP(); } break;
            case MessageID.PACKET_CG_REQ_RANDOMNAME: { packet = new CG_REQ_RANDOMNAME(); } break;
            case MessageID.PACKET_CG_REQ_TEAM_CHANGE_LEADER: { packet = new CG_REQ_TEAM_CHANGE_LEADER(); } break;
            case MessageID.PACKET_CG_REQ_TEAM_INVITE: { packet = new CG_REQ_TEAM_INVITE(); } break;
            case MessageID.PACKET_CG_REQ_TEAM_JOIN: { packet = new CG_REQ_TEAM_JOIN(); } break;
            case MessageID.PACKET_CG_REQ_TEAM_KICK_MEMBER: { packet = new CG_REQ_TEAM_KICK_MEMBER(); } break;
            case MessageID.PACKET_CG_REQ_TEAM_LEAVE: { packet = new CG_REQ_TEAM_LEAVE(); } break;
            case MessageID.PACKET_CG_RESOLVE_FELLOW: { packet = new CG_RESOLVE_FELLOW(); } break;
            case MessageID.PACKET_CG_RESTAURANT_ACTIVEDESK: { packet = new CG_RESTAURANT_ACTIVEDESK(); } break;
            case MessageID.PACKET_CG_RESTAURANT_BILLINGALL: { packet = new CG_RESTAURANT_BILLINGALL(); } break;
            case MessageID.PACKET_CG_RESTAURANT_FINISHPREPARE: { packet = new CG_RESTAURANT_FINISHPREPARE(); } break;
            case MessageID.PACKET_CG_RESTAURANT_PREPAREFOOD: { packet = new CG_RESTAURANT_PREPAREFOOD(); } break;
            case MessageID.PACKET_CG_RESTAURANT_VISITFRIEND: { packet = new CG_RESTAURANT_VISITFRIEND(); } break;
            case MessageID.PACKET_CG_RET_STARTWAR: { packet = new CG_RET_STARTWAR(); } break;
            case MessageID.PACKET_CG_SCENE_CHANGEINST: { packet = new CG_SCENE_CHANGEINST(); } break;
            case MessageID.PACKET_CG_SELECTROLE: { packet = new CG_SELECTROLE(); } break;
            case MessageID.PACKET_CG_SEND_FANKUI: { packet = new CG_SEND_FANKUI(); } break;
            case MessageID.PACKET_CG_SEND_GUILDMAIL: { packet = new CG_SEND_GUILDMAIL(); } break;
            case MessageID.PACKET_CG_SET_DEATH_PUSH: { packet = new CG_SET_DEATH_PUSH(); } break;
            case MessageID.PACKET_CG_SKILL_USE: { packet = new CG_SKILL_USE(); } break;
            case MessageID.PACKET_CG_SNS_INVITE_CODE: { packet = new CG_SNS_INVITE_CODE(); } break;
            case MessageID.PACKET_CG_SNS_SHARE: { packet = new CG_SNS_SHARE(); } break;
            case MessageID.PACKET_CG_STORAGEPACK_UNLOCK: { packet = new CG_STORAGEPACK_UNLOCK(); } break;
            case MessageID.PACKET_CG_SWORDSMAN_LEVELUP: { packet = new CG_SWORDSMAN_LEVELUP(); } break;
            case MessageID.PACKET_CG_SYNC_POS: { packet = new CG_SYNC_POS(); } break;
            case MessageID.PACKET_CG_SYSTEMSHOP_BUY: { packet = new CG_SYSTEMSHOP_BUY(); } break;
            case MessageID.PACKET_CG_SYSTEMSHOP_BUYBACK: { packet = new CG_SYSTEMSHOP_BUYBACK(); } break;
            case MessageID.PACKET_CG_SYSTEMSHOP_SELL: { packet = new CG_SYSTEMSHOP_SELL(); } break;
            case MessageID.PACKET_CG_SYSTEMSHOP_VIEW: { packet = new CG_SYSTEMSHOP_VIEW(); } break;
            case MessageID.PACKET_CG_TAKEOFF_FASHION: { packet = new CG_TAKEOFF_FASHION(); } break;
            case MessageID.PACKET_CG_TAKE_GEM: { packet = new CG_TAKE_GEM(); } break;
            case MessageID.PACKET_CG_TAKE_ITEM_STORAGEPACK: { packet = new CG_TAKE_ITEM_STORAGEPACK(); } break;
            case MessageID.PACKET_CG_THROW_ITEM: { packet = new CG_THROW_ITEM(); } break;
            case MessageID.PACKET_CG_UNCALL_FELLOW: { packet = new CG_UNCALL_FELLOW(); } break;
            case MessageID.PACKET_CG_UNEQUIP_FELLOW_SKILL: { packet = new CG_UNEQUIP_FELLOW_SKILL(); } break;
            case MessageID.PACKET_CG_UNEQUIP_ITEM: { packet = new CG_UNEQUIP_ITEM(); } break;
            case MessageID.PACKET_CG_UNEQUIP_SWORDSMAN: { packet = new CG_UNEQUIP_SWORDSMAN(); } break;
            case MessageID.PACKET_CG_UNLOCK_FELLOW: { packet = new CG_UNLOCK_FELLOW(); } break;
            case MessageID.PACKET_CG_UNLOCK_SWORDSMAN: { packet = new CG_UNLOCK_SWORDSMAN(); } break;
            case MessageID.PACKET_CG_USER_BEHAVIOR: { packet = new CG_USER_BEHAVIOR(); } break;
            case MessageID.PACKET_CG_USE_ITEM: { packet = new CG_USE_ITEM(); } break;
            case MessageID.PACKET_CG_USE_LIVINGSKILL: { packet = new CG_USE_LIVINGSKILL(); } break;
            case MessageID.PACKET_CG_VISIT_SWORDSMAN: { packet = new CG_VISIT_SWORDSMAN(); } break;
            case MessageID.PACKET_CG_WEAR_FASHION: { packet = new CG_WEAR_FASHION(); } break;
            case MessageID.PACKET_CG_WORLDBOSS_CHALLENGE: { packet = new CG_WORLDBOSS_CHALLENGE(); } break;
            case MessageID.PACKET_CG_WORLDBOSS_CHALL_RESPONSE: { packet = new CG_WORLDBOSS_CHALL_RESPONSE(); } break;
            case MessageID.PACKET_CG_WORLDBOSS_JOIN: { packet = new CG_WORLDBOSS_JOIN(); } break;
            case MessageID.PACKET_CG_WORLDBOSS_TEAMLIST_REQ: { packet = new CG_WORLDBOSS_TEAMLIST_REQ(); } break;
            case MessageID.PACKET_GC_7DAYAWARD_DATA: { packet = new GC_7DAYAWARD_DATA(); } break;
            case MessageID.PACKET_GC_ABANDONMISSION_RET: { packet = new GC_ABANDONMISSION_RET(); } break;
            case MessageID.PACKET_GC_ACCEPTMISSION_RET: { packet = new GC_ACCEPTMISSION_RET(); } break;
            case MessageID.PACKET_GC_ACTIVE_TITLE: { packet = new GC_ACTIVE_TITLE(); } break;
            case MessageID.PACKET_GC_ACTIVITYNOTICE: { packet = new GC_ACTIVITYNOTICE(); } break;
            case MessageID.PACKET_GC_ADDBLACKLIST: { packet = new GC_ADDBLACKLIST(); } break;
            case MessageID.PACKET_GC_ADDFRIEND: { packet = new GC_ADDFRIEND(); } break;
            case MessageID.PACKET_GC_ADDHATELIST: { packet = new GC_ADDHATELIST(); } break;
            case MessageID.PACKET_GC_ADDITIONINFO_UPDATE: { packet = new GC_ADDITIONINFO_UPDATE(); } break;
            case MessageID.PACKET_GC_ADDPAY_TEST: { packet = new GC_ADDPAY_TEST(); } break;
            case MessageID.PACKET_GC_ASK_ACTIVENESSAWARD_RET: { packet = new GC_ASK_ACTIVENESSAWARD_RET(); } break;
            case MessageID.PACKET_GC_ASK_BINDNUMBER_RET: { packet = new GC_ASK_BINDNUMBER_RET(); } break;
            case MessageID.PACKET_GC_ASK_COMMONFLAG_RET: { packet = new GC_ASK_COMMONFLAG_RET(); } break;
            case MessageID.PACKET_GC_ASK_GAIN_10_FELLOW_RET: { packet = new GC_ASK_GAIN_10_FELLOW_RET(); } break;
            case MessageID.PACKET_GC_ASK_GAIN_FELLOW_RET: { packet = new GC_ASK_GAIN_FELLOW_RET(); } break;
            case MessageID.PACKET_GC_ASK_LOUDSPEAKER_CONTENT: { packet = new GC_ASK_LOUDSPEAKER_CONTENT(); } break;
            case MessageID.PACKET_GC_ASK_PAY_ACTIVITY_PRIZE_RET: { packet = new GC_ASK_PAY_ACTIVITY_PRIZE_RET(); } break;
            case MessageID.PACKET_GC_ASK_PAY_ACTIVITY_RET: { packet = new GC_ASK_PAY_ACTIVITY_RET(); } break;
            case MessageID.PACKET_GC_ASK_STARTGUILDWAR: { packet = new GC_ASK_STARTGUILDWAR(); } break;
            case MessageID.PACKET_GC_ASK_UPDATE_STORAGEPACK_RET: { packet = new GC_ASK_UPDATE_STORAGEPACK_RET(); } break;
            case MessageID.PACKET_GC_ATTACKFLY: { packet = new GC_ATTACKFLY(); } break;
            case MessageID.PACKET_GC_BACKPACK_RESIZE: { packet = new GC_BACKPACK_RESIZE(); } break;
            case MessageID.PACKET_GC_BELLE_ACTIVE: { packet = new GC_BELLE_ACTIVE(); } break;
            case MessageID.PACKET_GC_BELLE_ACTIVEMATRIX_RET: { packet = new GC_BELLE_ACTIVEMATRIX_RET(); } break;
            case MessageID.PACKET_GC_BELLE_BATTLE_RET: { packet = new GC_BELLE_BATTLE_RET(); } break;
            case MessageID.PACKET_GC_BELLE_CANCELMATRIX_RET: { packet = new GC_BELLE_CANCELMATRIX_RET(); } break;
            case MessageID.PACKET_GC_BELLE_CLOSE_RET: { packet = new GC_BELLE_CLOSE_RET(); } break;
            case MessageID.PACKET_GC_BELLE_DATA: { packet = new GC_BELLE_DATA(); } break;
            case MessageID.PACKET_GC_BELLE_EVOLUTIONRAPID_RET: { packet = new GC_BELLE_EVOLUTIONRAPID_RET(); } break;
            case MessageID.PACKET_GC_BELLE_EVOLUTION_RET: { packet = new GC_BELLE_EVOLUTION_RET(); } break;
            case MessageID.PACKET_GC_BELLE_REST_RET: { packet = new GC_BELLE_REST_RET(); } break;
            case MessageID.PACKET_GC_BROADCAST_ATTR: { packet = new GC_BROADCAST_ATTR(); } break;
            case MessageID.PACKET_GC_BUY_GUILDGOODS: { packet = new GC_BUY_GUILDGOODS(); } break;
            case MessageID.PACKET_GC_CALL_FELLOW_RET: { packet = new GC_CALL_FELLOW_RET(); } break;
            case MessageID.PACKET_GC_CDTIME_UPDATE: { packet = new GC_CDTIME_UPDATE(); } break;
            case MessageID.PACKET_GC_CHALLENGERANKLIST: { packet = new GC_CHALLENGERANKLIST(); } break;
            case MessageID.PACKET_GC_CHALLENGE_HISTORY: { packet = new GC_CHALLENGE_HISTORY(); } break;
            case MessageID.PACKET_GC_CHALLENGE_MYDATA: { packet = new GC_CHALLENGE_MYDATA(); } break;
            case MessageID.PACKET_GC_CHALLENGE_REWARD: { packet = new GC_CHALLENGE_REWARD(); } break;
            case MessageID.PACKET_GC_CHANGENAME: { packet = new GC_CHANGENAME(); } break;
            case MessageID.PACKET_GC_CHANGE_PKLIST: { packet = new GC_CHANGE_PKLIST(); } break;
            case MessageID.PACKET_GC_CHANGE_SHOWFASHION: { packet = new GC_CHANGE_SHOWFASHION(); } break;
            case MessageID.PACKET_GC_CHAT: { packet = new GC_CHAT(); } break;
            case MessageID.PACKET_GC_CLOSE_BLACKMARKET: { packet = new GC_CLOSE_BLACKMARKET(); } break;
            case MessageID.PACKET_GC_COMBATVALUE_RET: { packet = new GC_COMBATVALUE_RET(); } break;
            case MessageID.PACKET_GC_COMPLETEMISSION_RET: { packet = new GC_COMPLETEMISSION_RET(); } break;
            case MessageID.PACKET_GC_CONNECTED_HEARTBEAT: { packet = new GC_CONNECTED_HEARTBEAT(); } break;
            case MessageID.PACKET_GC_COPYSCENE_INVITE: { packet = new GC_COPYSCENE_INVITE(); } break;
            case MessageID.PACKET_GC_COPYSCENE_RESULT: { packet = new GC_COPYSCENE_RESULT(); } break;
            case MessageID.PACKET_GC_COUNTDOWN: { packet = new GC_COUNTDOWN(); } break;
            case MessageID.PACKET_GC_CREATEROLE_RET: { packet = new GC_CREATEROLE_RET(); } break;
            case MessageID.PACKET_GC_CREATE_FELLOW: { packet = new GC_CREATE_FELLOW(); } break;
            case MessageID.PACKET_GC_CREATE_NPC: { packet = new GC_CREATE_NPC(); } break;
            case MessageID.PACKET_GC_CREATE_PLAYER: { packet = new GC_CREATE_PLAYER(); } break;
            case MessageID.PACKET_GC_CREATE_SNARE: { packet = new GC_CREATE_SNARE(); } break;
            case MessageID.PACKET_GC_CREATE_YANHUA: { packet = new GC_CREATE_YANHUA(); } break;
            case MessageID.PACKET_GC_CREATE_ZOMBIEUSER: { packet = new GC_CREATE_ZOMBIEUSER(); } break;
            case MessageID.PACKET_GC_DAILYAWARD_DATA: { packet = new GC_DAILYAWARD_DATA(); } break;
            case MessageID.PACKET_GC_DAILYLUCKYDRAW_FAIL: { packet = new GC_DAILYLUCKYDRAW_FAIL(); } break;
            case MessageID.PACKET_GC_DAILYLUCKYDRAW_GAINBONUS: { packet = new GC_DAILYLUCKYDRAW_GAINBONUS(); } break;
            case MessageID.PACKET_GC_DAILYLUCKYDRAW_UPDATE: { packet = new GC_DAILYLUCKYDRAW_UPDATE(); } break;
            case MessageID.PACKET_GC_DAILYMISSION_UPDATE_RET: { packet = new GC_DAILYMISSION_UPDATE_RET(); } break;
            case MessageID.PACKET_GC_DAMAGEBOARD_INFO: { packet = new GC_DAMAGEBOARD_INFO(); } break;
            case MessageID.PACKET_GC_DAYAWARD_DATA: { packet = new GC_DAYAWARD_DATA(); } break;
            case MessageID.PACKET_GC_DEBUG_MY_POS: { packet = new GC_DEBUG_MY_POS(); } break;
            case MessageID.PACKET_GC_DELBLACKLIST: { packet = new GC_DELBLACKLIST(); } break;
            case MessageID.PACKET_GC_DELETE_OBJ: { packet = new GC_DELETE_OBJ(); } break;
            case MessageID.PACKET_GC_DELETE_TITLE: { packet = new GC_DELETE_TITLE(); } break;
            case MessageID.PACKET_GC_DELFRIEND: { packet = new GC_DELFRIEND(); } break;
            case MessageID.PACKET_GC_DELHATELIST: { packet = new GC_DELHATELIST(); } break;
            case MessageID.PACKET_GC_DO_CLIENT_SCRIPT: { packet = new GC_DO_CLIENT_SCRIPT(); } break;
            case MessageID.PACKET_GC_DROPITEM_INFO: { packet = new GC_DROPITEM_INFO(); } break;
            case MessageID.PACKET_GC_DUEL_REQUESTU: { packet = new GC_DUEL_REQUESTU(); } break;
            case MessageID.PACKET_GC_DUEL_STATE: { packet = new GC_DUEL_STATE(); } break;
            case MessageID.PACKET_GC_DYNAMICOBSTACLE_OPT: { packet = new GC_DYNAMICOBSTACLE_OPT(); } break;
            case MessageID.PACKET_GC_ENTER_SCENE: { packet = new GC_ENTER_SCENE(); } break;
            case MessageID.PACKET_GC_EQUIP_ENCHANCE_RET: { packet = new GC_EQUIP_ENCHANCE_RET(); } break;
            case MessageID.PACKET_GC_EQUIP_FELLOW_SKILL_RET: { packet = new GC_EQUIP_FELLOW_SKILL_RET(); } break;
            case MessageID.PACKET_GC_EQUIP_STAR_RET: { packet = new GC_EQUIP_STAR_RET(); } break;
            case MessageID.PACKET_GC_FELLOW_APPLY_POINT_RET: { packet = new GC_FELLOW_APPLY_POINT_RET(); } break;
            case MessageID.PACKET_GC_FELLOW_CHANGE_NAME_RET: { packet = new GC_FELLOW_CHANGE_NAME_RET(); } break;
            case MessageID.PACKET_GC_FELLOW_ENCHANCE_RET: { packet = new GC_FELLOW_ENCHANCE_RET(); } break;
            case MessageID.PACKET_GC_FELLOW_STAR_RET: { packet = new GC_FELLOW_STAR_RET(); } break;
            case MessageID.PACKET_GC_FINDPLAYER: { packet = new GC_FINDPLAYER(); } break;
            case MessageID.PACKET_GC_FORCE_SETPOS: { packet = new GC_FORCE_SETPOS(); } break;
            case MessageID.PACKET_GC_GAIN_TITLE: { packet = new GC_GAIN_TITLE(); } break;
            case MessageID.PACKET_GC_GUILDACTIVITY_BOSSDATA: { packet = new GC_GUILDACTIVITY_BOSSDATA(); } break;
            case MessageID.PACKET_GC_GUILD_CREATE: { packet = new GC_GUILD_CREATE(); } break;
            case MessageID.PACKET_GC_GUILD_INVITE_CONFIRM: { packet = new GC_GUILD_INVITE_CONFIRM(); } break;
            case MessageID.PACKET_GC_GUILD_JOIN: { packet = new GC_GUILD_JOIN(); } break;
            case MessageID.PACKET_GC_GUILD_LEAVE: { packet = new GC_GUILD_LEAVE(); } break;
            case MessageID.PACKET_GC_GUILD_NEWRESERVE: { packet = new GC_GUILD_NEWRESERVE(); } break;
            case MessageID.PACKET_GC_GUILD_RET_INFO: { packet = new GC_GUILD_RET_INFO(); } break;
            case MessageID.PACKET_GC_GUILD_RET_LEVELUP: { packet = new GC_GUILD_RET_LEVELUP(); } break;
            case MessageID.PACKET_GC_GUILD_RET_LIST: { packet = new GC_GUILD_RET_LIST(); } break;
            case MessageID.PACKET_GC_HUASHAN_PVP_ASSIST_STATE: { packet = new GC_HUASHAN_PVP_ASSIST_STATE(); } break;
            case MessageID.PACKET_GC_HUASHAN_PVP_MEMBERLIST: { packet = new GC_HUASHAN_PVP_MEMBERLIST(); } break;
            case MessageID.PACKET_GC_HUASHAN_PVP_OPPONENTVIEW: { packet = new GC_HUASHAN_PVP_OPPONENTVIEW(); } break;
            case MessageID.PACKET_GC_HUASHAN_PVP_SELFPOSITION: { packet = new GC_HUASHAN_PVP_SELFPOSITION(); } break;
            case MessageID.PACKET_GC_HUASHAN_PVP_SHOWSEARCH: { packet = new GC_HUASHAN_PVP_ShowSearch(); } break;
            case MessageID.PACKET_GC_HUASHAN_PVP_STATE: { packet = new GC_HUASHAN_PVP_STATE(); } break;
            case MessageID.PACKET_GC_JOIN_TEAM_INVITE: { packet = new GC_JOIN_TEAM_INVITE(); } break;
            case MessageID.PACKET_GC_JOIN_TEAM_REQUEST: { packet = new GC_JOIN_TEAM_REQUEST(); } break;
            case MessageID.PACKET_GC_LEVELAWARD_DATA: { packet = new GC_LEVELAWARD_DATA(); } break;
            case MessageID.PACKET_GC_LEVELUP_FELLOW_SKILL_RET: { packet = new GC_LEVELUP_FELLOW_SKILL_RET(); } break;
            case MessageID.PACKET_GC_LOGIN_QUEUE_STATUS: { packet = new GC_LOGIN_QUEUE_STATUS(); } break;
            case MessageID.PACKET_GC_LOGIN_RET: { packet = new GC_LOGIN_RET(); } break;
            case MessageID.PACKET_GC_MAIL_DELETE: { packet = new GC_MAIL_DELETE(); } break;
            case MessageID.PACKET_GC_MAIL_UPDATE: { packet = new GC_MAIL_UPDATE(); } break;
            case MessageID.PACKET_GC_MASTERSHOP_BUY: { packet = new GC_MASTERSHOP_BUY(); } break;
            case MessageID.PACKET_GC_MASTER_ACTIVE_SKILL: { packet = new GC_MASTER_ACTIVE_SKILL(); } break;
            case MessageID.PACKET_GC_MASTER_APPROVE_RESERVE: { packet = new GC_MASTER_APPROVE_RESERVE(); } break;
            case MessageID.PACKET_GC_MASTER_CREATE: { packet = new GC_MASTER_CREATE(); } break;
            case MessageID.PACKET_GC_MASTER_FORGET_SKILL: { packet = new GC_MASTER_FORGET_SKILL(); } break;
            case MessageID.PACKET_GC_MASTER_JOIN: { packet = new GC_MASTER_JOIN(); } break;
            case MessageID.PACKET_GC_MASTER_KICK: { packet = new GC_MASTER_KICK(); } break;
            case MessageID.PACKET_GC_MASTER_LEARN_SKILL: { packet = new GC_MASTER_LEARN_SKILL(); } break;
            case MessageID.PACKET_GC_MASTER_LEAVE: { packet = new GC_MASTER_LEAVE(); } break;
            case MessageID.PACKET_GC_MASTER_RET_INFO: { packet = new GC_MASTER_RET_INFO(); } break;
            case MessageID.PACKET_GC_MASTER_RET_LIST: { packet = new GC_MASTER_RET_LIST(); } break;
            case MessageID.PACKET_GC_MERCENARY_EMPLOYLIST: { packet = new GC_MERCENARY_EMPLOYLIST(); } break;
            case MessageID.PACKET_GC_MERCENARY_LEFTTIMES: { packet = new GC_MERCENARY_LEFTTIMES(); } break;
            case MessageID.PACKET_GC_MERCENARY_LIST_RES: { packet = new GC_MERCENARY_LIST_RES(); } break;
            case MessageID.PACKET_GC_MISSION_IGNOREMISSIONPREFLAG: { packet = new GC_MISSION_IGNOREMISSIONPREFLAG(); } break;
            case MessageID.PACKET_GC_MISSION_PARAM: { packet = new GC_MISSION_PARAM(); } break;
            case MessageID.PACKET_GC_MISSION_STATE: { packet = new GC_MISSION_STATE(); } break;
            case MessageID.PACKET_GC_MISSION_SYNC_MISSIONLIST: { packet = new GC_MISSION_SYNC_MISSIONLIST(); } break;
            case MessageID.PACKET_GC_MONEYTREE_DATA: { packet = new GC_MONEYTREE_DATA(); } break;
            case MessageID.PACKET_GC_MOUNTCOLLECTED_FLAG: { packet = new GC_MOUNTCOLLECTED_FLAG(); } break;
            case MessageID.PACKET_GC_MOUNT_DATA: { packet = new GC_MOUNT_DATA(); } break;
            case MessageID.PACKET_GC_MOUNT_MARK_RET: { packet = new GC_MOUNT_MARK_RET(); } break;
            case MessageID.PACKET_GC_MOVE: { packet = new GC_MOVE(); } break;
            case MessageID.PACKET_GC_NEAR_PLAYERLIST: { packet = new GC_NEAR_PLAYERLIST(); } break;
            case MessageID.PACKET_GC_NEAR_TEAMLIST: { packet = new GC_NEAR_TEAMLIST(); } break;
            case MessageID.PACKET_GC_NEW7DAYONLINEAWARD_DATA: { packet = new GC_NEW7DAYONLINEAWARD_DATA(); } break;
            case MessageID.PACKET_GC_NEWONLINEAWARD_DATA: { packet = new GC_NEWONLINEAWARD_DATA(); } break;
            case MessageID.PACKET_GC_NEWSERVERAWARD_DATA: { packet = new GC_NEWSERVERAWARD_DATA(); } break;
            case MessageID.PACKET_GC_NOTICE: { packet = new GC_NOTICE(); } break;
            case MessageID.PACKET_GC_NOTICE_ADDED_FRIEND: { packet = new GC_NOTICE_ADDED_FRIEND(); } break;
            case MessageID.PACKET_GC_ONLINEAWARD_DATA: { packet = new GC_ONLINEAWARD_DATA(); } break;
            case MessageID.PACKET_GC_OPENFUNCTION: { packet = new GC_OPENFUNCTION(); } break;
            case MessageID.PACKET_GC_OPEN_SHAREWINDOW: { packet = new GC_OPEN_SHAREWINDOW(); } break;
            case MessageID.PACKET_GC_OPPONENT_LIST: { packet = new GC_OPPONENT_LIST(); } break;
            case MessageID.PACKET_GC_OP_QINGGONGPOINT: { packet = new GC_OP_QINGGONGPOINT(); } break;
            case MessageID.PACKET_GC_OP_TELEPORT: { packet = new GC_OP_TELEPORT(); } break;
            case MessageID.PACKET_GC_PAY_ORDER: { packet = new GC_PAY_ORDER(); } break;
            case MessageID.PACKET_GC_PLAYSHANDIANLIANEFFECT: { packet = new GC_PLAYSHANDIANLIANEFFECT(); } break;
            case MessageID.PACKET_GC_PLAYSTORY: { packet = new GC_PLAYSTORY(); } break;
            case MessageID.PACKET_GC_PLAY_EFFECT: { packet = new GC_PLAY_EFFECT(); } break;
            case MessageID.PACKET_GC_PLAY_MODELSOTRY: { packet = new GC_PLAY_MODELSOTRY(); } break;
            case MessageID.PACKET_GC_PLAY_SOUNDS: { packet = new GC_PLAY_SOUNDS(); } break;
            case MessageID.PACKET_GC_PLAY_YANHUA: { packet = new GC_PLAY_YANHUA(); } break;
            case MessageID.PACKET_GC_POWERUP_LIST: { packet = new GC_POWERUP_LIST(); } break;
            case MessageID.PACKET_GC_PUSH_NOTIFICATION: { packet = new GC_PUSH_NOTIFICATION(); } break;
            case MessageID.PACKET_GC_PUT_GEM_RET: { packet = new GC_PUT_GEM_RET(); } break;
            case MessageID.PACKET_GC_PUT_ITEM_STORAGEPACK_RET: { packet = new GC_PUT_ITEM_STORAGEPACK_RET(); } break;
            case MessageID.PACKET_GC_QIANKUNDAI_PRODUCT: { packet = new GC_QIANKUNDAI_PRODUCT(); } break;
            case MessageID.PACKET_GC_REMOVEEFFECT: { packet = new GC_REMOVEEFFECT(); } break;
            case MessageID.PACKET_GC_RESOLVE_FELLOW_RET: { packet = new GC_RESOLVE_FELLOW_RET(); } break;
            case MessageID.PACKET_GC_RESTAURANT_DESTUPDATE: { packet = new GC_RESTAURANT_DESTUPDATE(); } break;
            case MessageID.PACKET_GC_RESTAURANT_LEVELUPDATE: { packet = new GC_RESTAURANT_LEVELUPDATE(); } break;
            case MessageID.PACKET_GC_RESTAURANT_UPDATE: { packet = new GC_RESTAURANT_UPDATE(); } break;
            case MessageID.PACKET_GC_RESTAURANT_VISITFRIENDINFO: { packet = new GC_RESTAURANT_VISITFRIENDINFO(); } break;
            case MessageID.PACKET_GC_RES_POWERUP: { packet = new GC_RES_POWERUP(); } break;
            case MessageID.PACKET_GC_RET_ACTIVE_LEICHONG: { packet = new GC_RET_ACTIVE_LEICHONG(); } break;
            case MessageID.PACKET_GC_RET_ACTIVE_YUEKA: { packet = new GC_RET_ACTIVE_YUEKA(); } break;
            case MessageID.PACKET_GC_RET_AUTOTEAM: { packet = new GC_RET_AUTOTEAM(); } break;
            case MessageID.PACKET_GC_RET_BLACKMARKETITEMINFO: { packet = new GC_RET_BLACKMARKETITEMINFO(); } break;
            case MessageID.PACKET_GC_RET_CHANGENAME: { packet = new GC_RET_CHANGENAME(); } break;
            case MessageID.PACKET_GC_RET_CHANGE_PKMODLE: { packet = new GC_RET_CHANGE_PKMODLE(); } break;
            case MessageID.PACKET_GC_RET_CONSIGNSALEITEMINFO: { packet = new GC_RET_CONSIGNSALEITEMINFO(); } break;
            case MessageID.PACKET_GC_RET_COPYSCENE_REWARD: { packet = new GC_RET_COPYSCENE_REWARD(); } break;
            case MessageID.PACKET_GC_RET_COPYSCENE_SWEEP: { packet = new GC_RET_COPYSCENE_SWEEP(); } break;
            case MessageID.PACKET_GC_RET_CURGUILDWARTYPE: { packet = new GC_RET_CURGUILDWARTYPE(); } break;
            case MessageID.PACKET_GC_RET_ENEMYGUILDINFO: { packet = new GC_RET_ENEMYGUILDINFO(); } break;
            case MessageID.PACKET_GC_RET_FANKUI: { packet = new GC_RET_FANKUI(); } break;
            case MessageID.PACKET_GC_RET_FELLOW_RESET_POINT: { packet = new GC_RET_FELLOW_RESET_POINT(); } break;
            case MessageID.PACKET_GC_RET_FINALGUILDWARGROUPINFO: { packet = new GC_RET_FINALGUILDWARGROUPINFO(); } break;
            case MessageID.PACKET_GC_RET_FINALGUILDWARPOINTINFO: { packet = new GC_RET_FINALGUILDWARPOINTINFO(); } break;
            case MessageID.PACKET_GC_RET_FRIEND_USERINFO: { packet = new GC_RET_FRIEND_USERINFO(); } break;
            case MessageID.PACKET_GC_RET_GUILDBUSINESSINFO: { packet = new GC_RET_GUILDBUSINESSINFO(); } break;
            case MessageID.PACKET_GC_RET_GUILDMISSIONINFO: { packet = new GC_RET_GUILDMISSIONINFO(); } break;
            case MessageID.PACKET_GC_RET_HUASHAN_PKINFO: { packet = new GC_RET_HUASHAN_PKINFO(); } break;
            case MessageID.PACKET_GC_RET_ISWILDENEMY2USER: { packet = new GC_RET_ISWILDENEMY2USER(); } break;
            case MessageID.PACKET_GC_RET_JUQINGITEM_PLAYEFFECT: { packet = new GC_RET_JUQINGITEM_PLAYEFFECT(); } break;
            case MessageID.PACKET_GC_RET_LEVELUP_SWORDSMAN: { packet = new GC_RET_LEVELUP_SWORDSMAN(); } break;
            case MessageID.PACKET_GC_RET_LOCK_TITLE: { packet = new GC_RET_LOCK_TITLE(); } break;
            case MessageID.PACKET_GC_RET_MARRAGE: { packet = new GC_RET_MARRAGE(); } break;
            case MessageID.PACKET_GC_RET_MYCONSIGNSALEITEM: { packet = new GC_RET_MYCONSIGNSALEITEM(); } break;
            case MessageID.PACKET_GC_RET_OTHERROLE_DATA: { packet = new GC_RET_OTHERROLE_DATA(); } break;
            case MessageID.PACKET_GC_RET_PICKUP_ITEM: { packet = new GC_RET_PICKUP_ITEM(); } break;
            case MessageID.PACKET_GC_RET_PKINFO: { packet = new GC_RET_PKINFO(); } break;
            case MessageID.PACKET_GC_RET_PRELIMINARY_WARINFO: { packet = new GC_RET_PRELIMINARY_WARINFO(); } break;
            case MessageID.PACKET_GC_RET_PUT_GEM: { packet = new GC_RET_PUT_GEM(); } break;
            case MessageID.PACKET_GC_RET_QUIT_GAME: { packet = new GC_RET_QUIT_GAME(); } break;
            case MessageID.PACKET_GC_RET_RANDOMNAME: { packet = new GC_RET_RANDOMNAME(); } break;
            case MessageID.PACKET_GC_RET_RANK: { packet = new GC_RET_RANK(); } break;
            case MessageID.PACKET_GC_RET_RELIVE: { packet = new GC_RET_RELIVE(); } break;
            case MessageID.PACKET_GC_RET_ROLE_DATA: { packet = new GC_RET_ROLE_DATA(); } break;
            case MessageID.PACKET_GC_RET_SELOBJ_INFO: { packet = new GC_RET_SELOBJ_INFO(); } break;
            case MessageID.PACKET_GC_RET_TEAMPLATFORMINFO: { packet = new GC_RET_TEAMPLATFORMINFO(); } break;
            case MessageID.PACKET_GC_RET_TRAIL: { packet = new GC_RET_TRAIL(); } break;
            case MessageID.PACKET_GC_RET_USE_SKILL: { packet = new GC_RET_USE_SKILL(); } break;
            case MessageID.PACKET_GC_RET_VISIT_SWORDSMAN: { packet = new GC_RET_VISIT_SWORDSMAN(); } break;
            case MessageID.PACKET_GC_RET_YUANBAOSHOP_OPEN: { packet = new GC_RET_YUANBAOSHOP_OPEN(); } break;
            case MessageID.PACKET_GC_SCENE_TIMESCALE: { packet = new GC_SCENE_TIMESCALE(); } break;
            case MessageID.PACKET_GC_SELECTROLE_RET: { packet = new GC_SELECTROLE_RET(); } break;
            case MessageID.PACKET_GC_SEND_CURFASHION: { packet = new GC_SEND_CURFASHION(); } break;
            case MessageID.PACKET_GC_SEND_FASHIONINFO: { packet = new GC_SEND_FASHIONINFO(); } break;
            case MessageID.PACKET_GC_SERVERFLAGS: { packet = new GC_SERVERFLAGS(); } break;
            case MessageID.PACKET_GC_SERVER_CONFIG: { packet = new GC_SERVER_CONFIG(); } break;
            case MessageID.PACKET_GC_SERVER_SERIOUSERROR: { packet = new GC_SERVER_SERIOUSERROR(); } break;
            case MessageID.PACKET_GC_SHOWPKNOTICE: { packet = new GC_SHOWPKNOTICE(); } break;
            case MessageID.PACKET_GC_SHOW_BLACKMARKET: { packet = new GC_SHOW_BLACKMARKET(); } break;
            case MessageID.PACKET_GC_SHOW_EQUIPREMIND: { packet = new GC_SHOW_EQUIPREMIND(); } break;
            case MessageID.PACKET_GC_SHOW_ITEMREMIND: { packet = new GC_SHOW_ITEMREMIND(); } break;
            case MessageID.PACKET_GC_SHOW_PRELIMINARY_WARRET: { packet = new GC_SHOW_PRELIMINARY_WARRET(); } break;
            case MessageID.PACKET_GC_SHOW_SKILLNAME: { packet = new GC_SHOW_SKILLNAME(); } break;
            case MessageID.PACKET_GC_SHOW_USEITEMREMIND: { packet = new GC_SHOW_USEITEMREMIND(); } break;
            case MessageID.PACKET_GC_SKILL_FINISH: { packet = new GC_SKILL_FINISH(); } break;
            case MessageID.PACKET_GC_SKILL_STUDY: { packet = new GC_SKILL_STUDY(); } break;
            case MessageID.PACKET_GC_SNS_ACTIVE_SHOW: { packet = new GC_SNS_ACTIVE_SHOW(); } break;
            case MessageID.PACKET_GC_SNS_INVITE_CODE_RESPONSE: { packet = new GC_SNS_INVITE_CODE_RESPONSE(); } break;
            case MessageID.PACKET_GC_STOP: { packet = new GC_STOP(); } break;
            case MessageID.PACKET_GC_SWORDSMANPACK_RESIZE: { packet = new GC_SWORDSMANPACK_RESIZE(); } break;
            case MessageID.PACKET_GC_SYC_FRIEND_INFO: { packet = new GC_SYC_FRIEND_INFO(); } break;
            case MessageID.PACKET_GC_SYC_FRIEND_STATE: { packet = new GC_SYC_FRIEND_STATE(); } break;
            case MessageID.PACKET_GC_SYC_FULL_BLACK_LIST: { packet = new GC_SYC_FULL_BLACK_LIST(); } break;
            case MessageID.PACKET_GC_SYC_FULL_FRIEND_LIST: { packet = new GC_SYC_FULL_FRIEND_LIST(); } break;
            case MessageID.PACKET_GC_SYC_FULL_HATE_LIST: { packet = new GC_SYC_FULL_HATE_LIST(); } break;
            case MessageID.PACKET_GC_SYNC_ACTIVENESS: { packet = new GC_SYNC_ACTIVENESS(); } break;
            case MessageID.PACKET_GC_SYNC_ACTIVENESSAWARD: { packet = new GC_SYNC_ACTIVENESSAWARD(); } break;
            case MessageID.PACKET_GC_SYNC_ACTIVETITLE: { packet = new GC_SYNC_ACTIVETITLE(); } break;
            case MessageID.PACKET_GC_SYNC_AWARDTABLE: { packet = new GC_SYNC_AWARDTABLE(); } break;
            case MessageID.PACKET_GC_SYNC_COMMONDATA: { packet = new GC_SYNC_COMMONDATA(); } break;
            case MessageID.PACKET_GC_SYNC_COMMONFLAG: { packet = new GC_SYNC_COMMONFLAG(); } break;
            case MessageID.PACKET_GC_SYNC_COPYSCENEEXTRANUMBER: { packet = new GC_SYNC_COPYSCENEEXTRANUMBER(); } break;
            case MessageID.PACKET_GC_SYNC_COPYSCENENUMBER: { packet = new GC_SYNC_COPYSCENENUMBER(); } break;
            case MessageID.PACKET_GC_SYNC_FASHION: { packet = new GC_SYNC_FASHION(); } break;
            case MessageID.PACKET_GC_SYNC_MASTER_SKILL_NAME: { packet = new GC_SYNC_MASTER_SKILL_NAME(); } break;
            case MessageID.PACKET_GC_SYNC_NEW7DAYONLINEAWARDTABLE: { packet = new GC_SYNC_NEW7DAYONLINEAWARDTABLE(); } break;
            case MessageID.PACKET_GC_SYNC_NEWONLINEAWARDTABLE: { packet = new GC_SYNC_NEWONLINEAWARDTABLE(); } break;
            case MessageID.PACKET_GC_SYNC_PAY_ACTIVITY_DATA: { packet = new GC_SYNC_PAY_ACTIVITY_DATA(); } break;
            case MessageID.PACKET_GC_SYNC_PLAYERFACEDIR: { packet = new GC_SYNC_PLAYERFACEDIR(); } break;
            case MessageID.PACKET_GC_SYNC_PLAYER_STATE: { packet = new GC_SYNC_PLAYER_STATE(); } break;
            case MessageID.PACKET_GC_SYNC_POS: { packet = new GC_SYNC_POS(); } break;
            case MessageID.PACKET_GC_SYNC_REACHEDSCENE: { packet = new GC_SYNC_REACHEDSCENE(); } break;
            case MessageID.PACKET_GC_SYNSELTRAGET_ATTR: { packet = new GC_SYNSELTRAGET_ATTR(); } break;
            case MessageID.PACKET_GC_SYN_ATTR: { packet = new GC_SYN_ATTR(); } break;
            case MessageID.PACKET_GC_SYN_LOVERINFO: { packet = new GC_SYN_LOVERINFO(); } break;
            case MessageID.PACKET_GC_SYN_SKILLINFO: { packet = new GC_SYN_SKILLINFO(); } break;
            case MessageID.PACKET_GC_SYN_TORCH_VALUE: { packet = new GC_SYN_TORCH_VALUE(); } break;
            case MessageID.PACKET_GC_SYSTEMSHOP_MERCHANDISELIST: { packet = new GC_SYSTEMSHOP_MERCHANDISELIST(); } break;
            case MessageID.PACKET_GC_TAKE_GEM_RET: { packet = new GC_TAKE_GEM_RET(); } break;
            case MessageID.PACKET_GC_TAKE_ITEM_STORAGEPACK_RET: { packet = new GC_TAKE_ITEM_STORAGEPACK_RET(); } break;
            case MessageID.PACKET_GC_TEAM_LEAVE: { packet = new GC_TEAM_LEAVE(); } break;
            case MessageID.PACKET_GC_TEAM_SYNC_MEMBERINFO: { packet = new GC_TEAM_SYNC_MEMBERINFO(); } break;
            case MessageID.PACKET_GC_TEAM_SYNC_TEAMINFO: { packet = new GC_TEAM_SYNC_TEAMINFO(); } break;
            case MessageID.PACKET_GC_TELEMOVE: { packet = new GC_TELEMOVE(); } break;
            case MessageID.PACKET_GC_TODAY_FIRST_LOGIN: { packet = new GC_TODAY_FIRST_LOGIN(); } break;
            case MessageID.PACKET_GC_UI_NEWPLAYERGUIDE: { packet = new GC_UI_NEWPLAYERGUIDE(); } break;
            case MessageID.PACKET_GC_UI_OPERATION: { packet = new GC_UI_OPERATION(); } break;
            case MessageID.PACKET_GC_UNCALL_FELLOW_RET: { packet = new GC_UNCALL_FELLOW_RET(); } break;
            case MessageID.PACKET_GC_UNEQUIP_FELLOW_SKILL_RET: { packet = new GC_UNEQUIP_FELLOW_SKILL_RET(); } break;
            case MessageID.PACKET_GC_UPDATEITEM: { packet = new GC_UPDATEITEM(); } break;
            case MessageID.PACKET_GC_UPDATENOTICEDATA: { packet = new GC_UPDATENOTICEDATA(); } break;
            case MessageID.PACKET_GC_UPDATE_ACTIVE_FELLOWSKILL: { packet = new GC_UPDATE_ACTIVE_FELLOWSKILL(); } break;
            case MessageID.PACKET_GC_UPDATE_ALL_TITLEINVESTITIVE: { packet = new GC_UPDATE_ALL_TITLEINVESTITIVE(); } break;
            case MessageID.PACKET_GC_UPDATE_ANIMATION_STATE: { packet = new GC_UPDATE_ANIMATION_STATE(); } break;
            case MessageID.PACKET_GC_UPDATE_DEF_TITLE: { packet = new GC_UPDATE_DEF_TITLE(); } break;
            case MessageID.PACKET_GC_UPDATE_FELLOW: { packet = new GC_UPDATE_FELLOW(); } break;
            case MessageID.PACKET_GC_UPDATE_GAIN_FELLOW_COUNT: { packet = new GC_UPDATE_GAIN_FELLOW_COUNT(); } break;
            case MessageID.PACKET_GC_UPDATE_GEM_INFO: { packet = new GC_UPDATE_GEM_INFO(); } break;
            case MessageID.PACKET_GC_UPDATE_HITPONIT: { packet = new GC_UPDATE_HITPONIT(); } break;
            case MessageID.PACKET_GC_UPDATE_NEEDIMPACTINFO: { packet = new GC_UPDATE_NEEDIMPACTINFO(); } break;
            case MessageID.PACKET_GC_UPDATE_RECHARGESTATE: { packet = new GC_UPDATE_RECHARGESTATE(); } break;
            case MessageID.PACKET_GC_UPDATE_SCENE_INSTACTIVATION: { packet = new GC_UPDATE_SCENE_INSTACTIVATION(); } break;
            case MessageID.PACKET_GC_UPDATE_STAMINA_TIME: { packet = new GC_UPDATE_STAMINA_TIME(); } break;
            case MessageID.PACKET_GC_UPDATE_STORAGEPACK: { packet = new GC_UPDATE_STORAGEPACK(); } break;
            case MessageID.PACKET_GC_UPDATE_SWORDSMAN: { packet = new GC_UPDATE_SWORDSMAN(); } break;
            case MessageID.PACKET_GC_UPDATE_SWORDSMAN_VISITSTATE: { packet = new GC_UPDATE_SWORDSMAN_VISITSTATE(); } break;
            case MessageID.PACKET_GC_USERTIP: { packet = new GC_USERTIP(); } break;
            case MessageID.PACKET_GC_USE_ITEM_RET: { packet = new GC_USE_ITEM_RET(); } break;
            case MessageID.PACKET_GC_WORLDBOSS_CHALLEGE_RES: { packet = new GC_WORLDBOSS_CHALLEGE_RES(); } break;
            case MessageID.PACKET_GC_WORLDBOSS_DEAD: { packet = new GC_WORLDBOSS_DEAD(); } break;
            case MessageID.PACKET_GC_WORLDBOSS_OPEN: { packet = new GC_WORLDBOSS_OPEN(); } break;
            case MessageID.PACKET_GC_WORLDBOSS_SOMECHALL_ME: { packet = new GC_WORLDBOSS_SOMECHALL_ME(); } break;
            case MessageID.PACKET_GC_WORLDBOSS_TEAMLIST: { packet = new GC_WORLDBOSS_TEAMLIST(); } break;

        }
        if (null != packet)
        {
            packet.packetID = packetID;
        }
        return packet;
    }
    public void SendPacket()
    {
        NetWorkLogic.GetMe().SendPacket(this);
    }

    public PacketDistributed ParseFrom(byte[] data, int nLen)
    {
        CodedInputStream input = CodedInputStream.CreateInstance(data, 0, nLen);
        PacketDistributed inst = MergeFrom(input, this);
        input.CheckLastTagWas(0);
        return inst;
    }

    public abstract int SerializedSize();
    public abstract void WriteTo(CodedOutputStream data);
    public abstract PacketDistributed MergeFrom(CodedInputStream input, PacketDistributed _Inst);
    public abstract bool IsInitialized();

    public MessageID GetPacketID() { return packetID; }
    protected MessageID packetID;
}
